<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>大象</title>
{#    <link rel="stylesheet" href="http://localhost:81/staticfile/test.css">--这是最差的写法#}
        <link rel="stylesheet" href="{{ url_for("static",filename="test.css") }}">

</head>
<body>
{#定义头#}
{% block head %}
    <div style="color:#FF0000">this is head</div><br/>
{% endblock %}
{#定义内容#}
{% block content %}
    <div style="color:#FF00FF">this is content</div><br/>

{% endblock %}
{#定义页脚#}
{% block foot %}
    <div style="color:#0000FF">this is foot</div><br/>

{% endblock %}
</body>
</html>